package dapps.service.monitor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.hibernate.EntityManager;

import dapps.dao.monitor.TypeDao;
import dapps.entity.user.Type;

@Service
// 默认将类中的所有函数纳入事务管理.
@Transactional
public class TypeManager extends EntityManager<Type, Long> {
	@Autowired
	private TypeDao tDao;

	@Override
	protected TypeDao getEntityDao() {
		return tDao;
	}
	
	@Override
	public void delete(Long id) {
		tDao.delete(id);
	}
	
	public void delete(Type t) {
		tDao.delete(t);
	}
	

}
